<template>
	<view>
		<u-cell-group>
			<u-cell @click="topage" name="0" :isLink="true" title="更改手机号"></u-cell>
			<u-cell @click="topage" name="1" :isLink="true" title="修改密码"></u-cell>
		</u-cell-group>
		<view style="padding: 50rpx 30rpx;">
			<button type="default" @click="signOut">退出登录</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			signOut(){
				// 退出登录操作
				
				// 操作成功
				uni.navigateTo({
					url:'../login/login'
				})
			},
			topage(e) {
				console.log(e.name);
				switch (Number(e.name)) {
					case 0:
						uni.navigateTo({
							url: './changeMobile'
						})
						break;
					case 1:
						uni.navigateTo({
							url: './updatePassword'
						})
						break;
				}
			}
		}
	}
</script>

<style>

</style>
